package com.ruoyi.system.domain.quality;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 锁定隔离对象 block
 *
 * @author ruoyi
 * @date 2023-03-10
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("block")
public class Block implements Serializable {

private static final long serialVersionUID=1L;


        /** id */
        @TableId(value = "id")
        @ApiModelProperty(value = "id")
        private Long id;

        /** 物料编码 */
        @Excel(name = "物料编码")
        @ApiModelProperty(value = "物料编码")
        private String material;

        /** 隔离单号 */
        @Excel(name = "隔离单号")
        @ApiModelProperty(value = "隔离单号")
        private String code;

        /** 状态 1锁定  2解锁 */
        @Excel(name = "状态 1锁定  2解锁")
        @ApiModelProperty(value = "状态 1锁定  2解锁")
        private Long status;

        /** 创建者 */
        @ApiModelProperty(value = "创建者")
        private Long createBy;

    /** 创建者 */
    @Excel(name = "创建者名称")
    @ApiModelProperty(value = "创建者名称")
    @TableField(exist = false)
    private String createByName;

        /** 创建时间 */
        @Excel(name = "创建时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "创建时间")
        private Date createTime;

        /** 供应商代码 */
        @Excel(name = "供应商代码")
        @ApiModelProperty(value = "供应商代码")
        private String gysCode;

        /** 9码 */
        @Excel(name = "9码")
        @ApiModelProperty(value = "9码")
        private String nineCode;

        /** psn */
        @Excel(name = "psn")
        @ApiModelProperty(value = "psn")
        private String psn;

        /** 锁定时间/解锁时间 */
        @Excel(name = "锁定时间/解锁时间" , width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        @ApiModelProperty(value = "锁定时间/解锁时间")
        private Date updateTime;

        /** 锁定人/解锁人 */
        @ApiModelProperty(value = "锁定人/解锁人")
        private Long updateBy;

        /** 锁定人/解锁人 */
        @Excel(name = "锁定人/解锁人名称")
        @ApiModelProperty(value = "锁定人/解锁人名称")
        @TableField(exist = false)
        private String updateByName;

        /** 备注 */
        @Excel(name = "备注")
        @ApiModelProperty(value = "备注")
        private String remark;
}
